﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AssetDepreciation.aspx.cs" Inherits="AMS.Web.BaseData.AssetDepreciation" %>

<%@ Register Assembly="VitCode.Web.UI.ConditionSelector" Namespace="VitCode.Web.UI"
    TagPrefix="cc1" %>
<%@ Register Assembly="VitCode.Web.UI.PaginationGrid" Namespace="VitCode.Web.UI"
    TagPrefix="PaginationGrid" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript">
        function a() {

            var aa = document.getElementsByTagName("a")
            for (var i = 0; i < aa.length; i++) {
                aa[i].disabled = true;
                aa[i].onclick = function(){ alert("对不起，您没权限操作此功能!"); return false; };
                aa[i].href = "#";
                aa[i].display = "none";
             }
         }
    </script>
 
</head>
<body>
    <form id="form1" runat="server">
    <table class="tableElse" style="border: 1px solid #A8CFEB; margin-top: 4px; width: 100%">
        <tr>
            <td class="style1" valign="top">
                <font style="color: Black">您当前的位置：资产管理&nbsp;<img src="../Images/navigate.gif" alt=""/>&nbsp;资产折旧</font>
                 &nbsp;<img src="../Images/navigate.gif" alt=""/>&nbsp;<asp:Label ID="labTip" runat="server" >手动折旧</asp:Label>  
            </td>
        </tr>
        <tr>
          <td>    <asp:Label ID="Label1" runat="server">查询条件：</asp:Label>
                <asp:DropDownList ID="ddlCondition" runat="server">
                 </asp:DropDownList>
                <asp:TextBox ID="txtValue" runat="server" Width="136px"></asp:TextBox>
                  <asp:RadioButton ID="rbtAmount" runat="server" Text="匹配" GroupName="1"></asp:RadioButton><asp:RadioButton
                    ID="rbtLike" runat="server" Text="模糊" GroupName="1" Checked="True"></asp:RadioButton>&nbsp;
                <asp:Button ID="btnQuery1" runat="server" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" Text="查  询" OnClick="btnQuery_Click1" />&nbsp;&nbsp;
                    <asp:Button ID="btn1" runat="server" Text="返回手动折旧" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '" Width="90px"
                    onmouseup="this.className= 'btn_mouseup '" onclick="btn1_Click" Visible="false"/>&nbsp;&nbsp;
                  <asp:Button ID="btn2" runat="server" Text="自动折旧" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" onclick="btn2_Click"  />&nbsp;&nbsp;
                <cc1:conditionselector id="ConditionSelector1" runat="server" onselectcondition="ConditionSelector1_SelectCondition"
                    fieldsourcegrid="ListGridInfo" buttonclassname="btn_mouseout" onmousedownjs="this.className= 'btn_mousedown'"
                    onmouseoutjs="this.className= 'btn_mouseout'" onmouseoverjs="this.className= 'btn_mouseover'" />&nbsp;&nbsp;
                   
           </td>
        </tr>
        </table>
                   <PaginationGrid:PaginationGrid ID="ListGridInfo" runat="server" GridSelectedItemStyle_BackColor="SkyBlue"
                    AutoGenerateColumns="False" AutoSort="True" DataKeyField="Id" InitPageSize="15"
                    OnOnGridItemSelect="ListGridInfo_OnGridItemSelect">
                    <Columns>
                        <PaginationGrid:PaginationGridButtonColumn CommandType="Select" HeaderText="折旧"
                            Text="&lt;img src='/Images/edit.gif' border=0&gt;">
                        </PaginationGrid:PaginationGridButtonColumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="Barcode" HeaderText="资产条形码">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="AssetName" HeaderText="资产名称">
                        </PaginationGrid:paginationgridboundcolumn>
                           <PaginationGrid:paginationgridboundcolumn DataField="AssetType" HeaderText="资产类型">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:PaginationGridBoundColumn DataField="ModelNumber" HeaderText="规格型号">
                        </PaginationGrid:PaginationGridBoundColumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="SizeInfo" HeaderText="外形尺寸">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="OriginalValue" HeaderText="资产原值">
                        </PaginationGrid:paginationgridboundcolumn>
                         <PaginationGrid:paginationgridboundcolumn DataField="DepreciationValue" HeaderText="累计折旧金额">
                        </PaginationGrid:paginationgridboundcolumn>
                           <PaginationGrid:paginationgridboundcolumn DataField="EndValue" HeaderText="资产净值">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:PaginationGridBoundColumn DataField="AssetSource" HeaderText="资产来源">
                        </PaginationGrid:PaginationGridBoundColumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="AssetState" HeaderText="资产状态">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="AssetNature" HeaderText="资产性质">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:PaginationGridBoundColumn DataField="AssetSite" HeaderText="地点">
                        </PaginationGrid:PaginationGridBoundColumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="Location" HeaderText="详细位置">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="Department" HeaderText="部门">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="Users" HeaderText="使用人">
                        </PaginationGrid:paginationgridboundcolumn>
                          
                     </Columns>
                </PaginationGrid:PaginationGrid>
    <table class="tableElse" style="border: 1px solid #A8CFEB; margin-top: 4px; width: 100%" id="table2" runat="server" visible="false">
        <tr>
            <td>
         <asp:Button ID="btnQuery" Text="查看折旧资产" Width="90px" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" OnClick="btnQuery_Click" runat="server" />
           <asp:Button ID="btnStartDepreciation" Text="开始折旧" Width="90px"  class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" OnClick="btnStartDepreciation_Click" runat="server" />
           </td>
           <td align="right">
             <asp:Button ID="Button1" Text="查看折旧历史" Width="90px"  class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"  ToolTip="查看自动折旧历史"
                    onmouseup="this.className= 'btn_mouseup '" OnClick="btnDepreciationHistory_Click" runat="server" /> 
           </td>
        </tr>
        <tr>
          <td colspan="2">
             <PaginationGrid:PaginationGrid ID="PagList" runat="server" GridSelectedItemStyle_BackColor="SkyBlue"
          AutoGenerateColumns="False" AutoSort="True" DataKeyField="Id" InitPageSize="15">
           <Columns>
                      <PaginationGrid:paginationgridboundcolumn DataField="Barcode" HeaderText="条形码">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="AssetType" HeaderText="资产类型">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="AssetName" HeaderText="资产名称">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:PaginationGridBoundColumn DataField="ModelNumber" HeaderText="规格型号">
                        </PaginationGrid:PaginationGridBoundColumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="SizeInfo" HeaderText="外形尺寸">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="OriginalValue" HeaderText="资产原值">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="EndValue" HeaderText="资产净值">
                        </PaginationGrid:paginationgridboundcolumn>
                         <PaginationGrid:paginationgridboundcolumn DataField="DepreciationValue" HeaderText="累计折旧金额">
                        </PaginationGrid:paginationgridboundcolumn>
                          <PaginationGrid:paginationgridboundcolumn DataField="DepreciationCount" HeaderText="已折旧次数">
                        </PaginationGrid:paginationgridboundcolumn>
                         <PaginationGrid:PaginationGridBoundColumn DataField="DepreciationYears" HeaderText="折旧年限">
                        </PaginationGrid:PaginationGridBoundColumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="DepreciationRate" HeaderText="折旧率">
                        </PaginationGrid:paginationgridboundcolumn>
                       <PaginationGrid:PaginationGridBoundColumn DataField="AssetSite" HeaderText="地点">
                        </PaginationGrid:PaginationGridBoundColumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="Location" HeaderText="详细位置">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="Department" HeaderText="部门">
                        </PaginationGrid:paginationgridboundcolumn>
                        <PaginationGrid:paginationgridboundcolumn DataField="Users" HeaderText="使用人">
                        </PaginationGrid:paginationgridboundcolumn>
                         <PaginationGrid:paginationgridboundcolumn DataField="DepreciationFunction" HeaderText="折旧方法">
                        </PaginationGrid:paginationgridboundcolumn>
                         <PaginationGrid:paginationgridboundcolumn DataField="DepreciationDate" HeaderText="上次折旧日期" DataFormatString = "{0:yyyy-MM-dd}">
                        </PaginationGrid:paginationgridboundcolumn>
                       </Columns>
          </PaginationGrid:PaginationGrid>
          </td>
        </tr>
        </table>
 
    <br />
    </form>
</body>
</html>
